#
from Constants import *


'''

figure out types with images and loc[1]s


'''


class EscapeObstacle(object):
	def __init__(self):
		self.image = ESCAPE_IMAGES["obstacle"]
		self.loc = [-1000, 240]

		self.rect = self.image.get_rect()
		self.rect.topleft = self.loc

		self.active = False
		self.type = 0

	def reset(self, game):
		self.active = True
		self.loc[0] = game.camdisp[0] + resolution[0]

		#new type
		self.type = 0
		self.loc[1] = 240#depends on obstacle types

		#image
		self.rect = self.image.get_rect()
		self.rect.topleft = self.loc

	def update(self, game):
		pass

	def draw(self, camsurf, camdisp = (0,0)):
		if self.active:
			camsurf.blit(self.image, (self.loc[0] - camdisp[0], self.loc[1] - camdisp[1]))
